home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12077 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.mel.aone.net.au!leathm
  2. From: leathm@gbrmpa.gov.au (Leath Muller)
  3. Newsgroups: comp.lang.c++,alt.msdos.programmer,comp.programming
  4. Subject: Re: SVGA mode Video Buffer?
  5. Date: 18 Mar 1996 01:14:10 GMT
  6. Message-ID: <4iidd2$la2@news.mel.aone.net.au>
  7. References: <4if600$i9l@skydiver.jaguNET.com> <4if65l$i9l@skydiver.jaguNET.com> <4ifuj2$bf6@masala.cc.uh.edu>
  8. NNTP-Posting-Host: solwarra.gbrmpa.gov.au
  9.  
  10. Sensarn <txs53132@bayou.uh.edu> writes:
  11.  
  12. >I would use a far pointer to A000:0000h:
  13. >unsigned char far *vbuffer=(unsigned char far *)0xA0000000l;
  14. >I assume that you are using a linear screen mode (256 colors usually 
  15. >implies that).  Use Ralph Brown's Interrupt List for help on bank 
  16. >switching (int 10h extended function 4fh subfunction 05h -- I type that a 
  17. >lot, don't I?).
  18.  
  19. Your better off linearly mapping the graphics screen into memory so you
  20. can access the screen without bank swapping...although, its bloody
  21. difficult to seem to get real mode stuff to work properly in protected
  22. mode as I am finding out... :)
  23.  
  24. Leathal.
  25.